<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('AdminProductType/index')}">商品分类</a></li>
			<li class="active"><a href="{:U('AdminProductType/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">添加商品分类</a></li>
		</ul>
		<form action="{:U('AdminProductType/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>分类名称</th>
							<td>
								<input type="text" style="width:400px;" name="title" id="title" required value="{$item.title}" placeholder="请输入商品分类"/>
								<span class="form-required">*</span>
							</td>
						</tr>
						<tr>
							<th>排序</th>
							<td><input type="text" name="sort" id="sort" value="{$item.sort}" style="width: 400px" placeholder="请输入排序"> </td>
						</tr>

					</table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminPost/index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	</body>
</html>